package 面试;

public class Test01 extends Thread{
    @Override
    public void run() {
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("ThreadDemo");
    }
    public static void main(String[] args) {
        Test01 threadDemo = new Test01();
        threadDemo.start();

        System.out.println("main");
    }
}